package com.aspose.cells;

class zkg extends CollectionBase {
   public int a(zkf var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   public zkf a(int var1) {
      return (zkf)this.a.get(var1);
   }

   int a(int var1, int var2) {
      zkf var3 = new zkf(var1, var2);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
      return this.getCount() - 1;
   }

   void b(int var1, int var2) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         if (this.a(var3).a == var1) {
            this.a(var3).b = var2;
            return;
         }
      }

      zkf var4 = new zkf(var1, var2);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
   }

   int c(int var1, int var2) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         if (this.a(var3).a == var1) {
            return this.a(var3).b;
         }
      }

      return var2;
   }

   Color a(Color var1, boolean var2) {
      Color var3 = var1;
      int var4;
      if (!var2) {
         var4 = this.c(0, 0);
         return zkk.c(var1, (double)var4 / 100000.0D);
      } else {
         for(var4 = 0; var4 < this.getCount(); ++var4) {
            zkf var5 = this.a(var4);
            switch(var5.a) {
            case 0:
               var3 = zkk.a(var3, (double)var5.b / 100000.0D);
               break;
            case 1:
               var3 = zkk.b(var3, (double)var5.b / 100000.0D);
               break;
            case 2:
               var3 = zkk.d(var3, (double)var5.b / 100000.0D);
               break;
            case 3:
               var3 = zkk.e(var3, (double)var5.b / 100000.0D);
               break;
            case 4:
               var3 = zkk.f(var3, (double)var5.b / 100000.0D);
               break;
            case 5:
               var3 = zkk.g(var3, (double)var5.b / 100000.0D);
               break;
            case 6:
               var3 = zkk.h(var3, (double)var5.b / 100000.0D);
               break;
            case 7:
               var3 = zkk.i(var3, (double)var5.b / 100000.0D);
               break;
            case 8:
               var3 = zkk.j(var3, (double)var5.b / 100000.0D);
               break;
            case 9:
               var3 = zkk.k(var3, (double)var5.b / 100000.0D);
               break;
            case 10:
               var3 = zkk.l(var3, (double)var5.b / 100000.0D);
               break;
            case 11:
               var3 = zkk.m(var3, (double)var5.b / 100000.0D);
               break;
            case 12:
               var3 = zkk.n(var3, (double)var5.b / 100000.0D);
               break;
            case 13:
               var3 = zkk.o(var3, (double)var5.b / 100000.0D);
               break;
            case 14:
               var3 = zkk.p(var3, (double)var5.b / 60000.0D);
               break;
            case 15:
               var3 = zkk.q(var3, (double)var5.b / 100000.0D);
               break;
            case 16:
               var3 = zkk.r(var3, (double)var5.b / 60000.0D);
               break;
            case 17:
               var3 = zkk.s(var3, (double)var5.b / 100000.0D);
               break;
            case 18:
               var3 = zkk.t(var3, (double)var5.b / 100000.0D);
               break;
            case 19:
               var3 = zkk.u(var3, (double)var5.b / 100000.0D);
               break;
            case 20:
               var3 = zkk.v(var3, (double)var5.b / 100000.0D);
               break;
            case 21:
               var3 = zkk.w(var3, (double)var5.b / 100000.0D);
               break;
            case 22:
               var3 = zkk.x(var3, (double)var5.b / 100000.0D);
               break;
            case 23:
               var3 = zkk.c(var3);
               break;
            case 24:
               var3 = zkk.d(var3);
               break;
            case 25:
               var3 = zkk.a(var3);
               break;
            case 26:
               var3 = zkk.e(var3);
               break;
            case 27:
               var3 = zkk.b(var3);
            }
         }

         return var3;
      }
   }

   void a(zkg var1) {
      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         zkf var3 = var1.a(var2);
         this.a(var3.a, var3.b);
      }

   }

   boolean b(zkg var1) {
      if (this.getCount() == var1.getCount()) {
         for(int var2 = 0; var2 < this.getCount(); ++var2) {
            zkf var3 = this.a(var2);
            if (var3.b != var1.c(var3.a, 0)) {
               return false;
            }
         }

         return true;
      } else {
         return false;
      }
   }

   zkf b(int var1) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         if (this.a(var2).a == var1) {
            return this.a(var2);
         }
      }

      return null;
   }

   void c(int var1) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         if (this.a(var2).a == var1) {
            this.a.remove(var2);
            return;
         }
      }

   }

   // $FF: synthetic method
   public Object get(int x0) {
      return this.a(x0);
   }
}
